<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<form id="form_seal_return" class="panel-body form-horizontal form-padding">
    <input type="hidden" name="prjId" id="prjId" value="${prjId}" />
    <div class="form-group">
        <label class="col-md-2 control-label">任务组员<i class="fa fa-asterisk txt-color-red"></i></label>
        <div class="col-md-10">
            <select id="userId" name="userId" class="form-control">
                <option></option>
                <c:forEach var="item" items="${users}" varStatus="status">
                    <option value="${item.id}">${item.name}</option>
                </c:forEach>
            </select>
        </div>
    </div>
</form>

<script>

    // 下拉框
    $("#userId").select2({
        placeholder: "请选择一个任务组员",
        allowClear: true
    });

    function fn_dialog_member_select(callback) {
        var tmp = $("select#userId").val();
        if(!tmp){
            __toastr_error("请选择一个任务组员！");
            return false;
        }
        callback(tmp);
    }

</script>
